package manyText;

import java.util.Scanner;

//求回文数，即正序和倒序的值一样
public class for1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = a;
        int num = 0;
        int num1 = 0;
        while (a != 0) {
            num = a % 10;
            a = a / 10;
            num1 = num1 * 10 + num;
        }
        System.out.println(num1);
        if (num1 == b) {
            System.out.println(num1 + "是回文数");
        } else {
            System.out.println(b  + "不是回文数");
        }
    }
}
